<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            width: 200px;
            height: 200px;
            border: 1px solid red;
            /*设置超出部分是否显示
            visible(默认显示)
            hidden(隐藏)
            scroll(滚动显示)*/
            overflow: scroll;
        }
        img{
            /*设置行内或行内块元素 垂直对齐方式
            bottom
            top
            middle
            baseline(默认基线对齐)*/
            vertical-align: middle;
        }
    </style>
</head>
<body>
<input type="text"><img src="../c.jpg" width="50" alt="">
<div>
    <img src="../c.jpg" alt="">
</div>
</body>
</html>